package com.rentong.wx.cust.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * 
 * @author zhangle
 * @email 459343178@qq.com
 * @date 2024-12-24 14:42:33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "cust_flow")
public class CustFlowEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 收支明细的id
	 */
	@Id
	private Long flowId;
	/**
	 * 用户的id
	 */
	private Long custId;
	/**
	 * 1：收入；2：支出
	 */
	private Integer type;
	/**
	 * 收支明细的类型
	 */
	private String flowTypeName;
	/**
	 * 收支明细的id
	 */
	private Long flowTypeId;
	/**
	 * 资金变动的金额
	 */
	private BigDecimal fee;
	/**
	 * 变动前总余额
	 */
	private BigDecimal feeBefore;
	/**
	 * 变动后总余额
	 */
	private BigDecimal feeAfter;
	/**
	 * 关联的订单号
	 */
	private Long serviceOrderId;
	/**
	 * 创建时间
	 */
	private Date addTime;

}
